package com.shtel.bss.saas.tenant.service;

import com.github.pagehelper.PageInfo;
import com.shtel.bss.saas.core.data.common.service.IDataService;
import com.shtel.bss.saas.tenant.bo.SysTenantBo;

import java.util.List;

/**
 * 租户表服务
 *
 * @author xiezhiwei 2020-02-05 22:02
 */
public interface ISysTenantService extends IDataService {
    /**
     * 查询租户列表
     *
     * @param tenantName
     * @param email
     * @return
     */
    PageInfo<SysTenantBo> querySysTenantList(String tenantName, String email, int pageSize, int pageNum);

    /**
     * 租户详情查询
     *
     * @param tenantId
     * @return
     */
    SysTenantBo querySysTenantByTenantId(Long tenantId);

    void saveSysTenant(SysTenantBo sysTenantBo);

    void updateSysTenant(SysTenantBo sysTenantBo);

    void removeSysTenant(List<Long> tenantIds);

    /**
     * 禁用/启用租户
     * @param tenantId
     */
    void prohibitSysTenant(Long tenantId);
}
